/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 */

import React, {Fragment} from 'react';
import {
  SafeAreaView,
  StyleSheet,
  ScrollView,
  Button,
  View,
  Text,
  StatusBar,
} from 'react-native';

export default class FavoritePage extends React.Component{
 
  render(){
    const {navigation} = this.props
    return (
      <View style={styles.sectionContainer}>
        <Text style={styles.sectionTitle}>FavoritePage</Text>
        <Button
          title = "改变主题色"
          onPress = {()=>{
            navigation.setParams({
              theme:{
                tintColor:'orange',
                updateTime:new Date().getTime()
              }
            })
          }}
        />
      </View>
    )
  }
 
};

const styles = StyleSheet.create({

  sectionContainer: {
    marginTop: 32,
    paddingHorizontal: 24,
  },
  sectionTitle: {
    fontSize: 24,
    fontWeight: '600',
    color:'#333',
  },
 
});


